﻿@model SoftHotel.Models.Invitado

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Invitado</legend>

       @Html.HiddenFor(model => model.idReserva)

       
    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody><tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Nombre: </td>
	  <td> 
          
            @Html.EditorFor(model => model.nombre)
           </td>

          <td style="font-weight: bold; width: 145px;" align="left">Apellido Paterno:  </td>
	  <td style="width: 300px;"><div class="editor-field">
            @Html.EditorFor(model => model.apePaterno)
              </div></td>
      <td> </td>
	  
	</tr><tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Apellido Materno: </td>
	  <td><div class="editor-field">
               @Html.EditorFor(model => model.aperMaterno)
            
        </div> </td>
	  <td style="font-weight: bold;">Tipo Documento: </td>
	  <td>  @Html.DropDownListFor(model => model.tipoDocumento, (IEnumerable<SelectListItem>)ViewBag.tipoDoc, "--Seleccionar--", new { @class = "required" })
    </td>
	</tr>
	<tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;">Numero de Documento: </td>
	  <td><div class="editor-field">
            @Html.EditorFor(model => model.numeroDocumento)
           
        </div></td>
	  <td style="font-weight: bold;"> </td>
	  <td>  </td>
	</tr>
	<tr>
	  <td style="width: 20px;"></td>
	  <td style="font-weight: bold;"></td>
	  <td></td>
	  
	</tr>
	
</tbody></table>

        

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

   @using (Html.BeginForm("Invitados","ReservaEv",FormMethod.Get))
{
        
        <p>
            @Html.HiddenFor(model => model.idReserva)
    
            <input type="submit" value="Volver" />
        
      
</p> }
